import { _decorator, Node, Component, director, ProgressBar, Label } from 'cc';
const { ccclass, property } = _decorator;

@ccclass('LoadingScene')
export default class LoadingScene extends Component {
    public static Instance: LoadingScene;

    // @property(ProgressBar)
    // ProgressBar_loading: ProgressBar = null;
    // @property(Node)
    // bar: Node = null;

    // @property(Label)
    // Label_progress: Label = null;

    onLoad() {
        LoadingScene.Instance = this;

        director.preloadScene("MainScene", function () {
            director.loadScene("MainScene");
        });
    }
}